import { Component, TemplateRef } from '@angular/core';


import { NzNotificationService } from 'ng-zorro-antd/notification';

@Component({
  selector: 'app-home',
  templateUrl: './home.component.html',
  styleUrls: ['./home.component.less']
})
export class HomeComponent {
  templateText = "加载中。。。"

  constructor(private notification: NzNotificationService) { }

  createBasicNotification(template: TemplateRef<{}>): void {
    this.notification.template(template, { nzDuration: 0, nzClass: 'xxx' });
  }
  createBasicNotification01(template: TemplateRef<{}>): void {
    this.notification.template(template, { nzDuration: 0, nzClass: 'xxx02', nzCloseIcon: 'close-circle' });
    this.templateText = "获得控制权!"
  }
  createBasicNotification02(template: TemplateRef<{}>): void {
    this.notification.template(template, { nzDuration: 0, nzClass: 'xxx02', nzCloseIcon: 'close-circle' });
    this.templateText = "当前无控制权!"
  }
  createBasicNotification03(template: TemplateRef<{}>): void {
    this.notification.template(template, { nzDuration: 3000, nzClass: 'xxx02', nzCloseIcon: 'close-circle' });
    this.templateText = "1号技师为您服务!"
  }
  createBasicNotification04(template: TemplateRef<{}>): void {
    this.notification.template(template, { nzDuration: 3000, nzClass: 'xxx02', nzCloseIcon: 'close-circle' });
    this.templateText = "2号技师为您服务!"
  }
}
